﻿using System.ComponentModel.DataAnnotations;

namespace HengTong.Model.Request;

public class SmsLoginRequest
{
    [Required(ErrorMessage = "手机号不能为空")]
    [RegularExpression(@"^1\d{10}$", ErrorMessage = "手机号格式不正确")]
    public string Mobile { get; set; }

    [Required(ErrorMessage = "验证码不能为空")] 
    public string Code { get; set; }
}